
const children = [
    {
        path:'markdown',
        name:'markdown',
        meta:{
            title:'markdown'
        },
        component:()=>import('@/view/home/markdown')
    },
    {
        path:'drag',
        name:'drag',
        meta:{
            title:'drag'
        },
        component:()=>import('@/view/home/drag')
    },
    {
        path:'grid',
        name:'grid',
        meta:{
            title:'网格'
        },
        component:()=>import('@/view/home/grid')
    },
    {
        path:'zhang2',
        name:'zhang2',
        meta:{
            title:'白近期'
        },
        component:()=>import('@/view/home/page/Page1')
    },
    {
        path:'modal',
        name:'modal',
        meta:{
            title:'modal'
        },
        component:()=>import('@/view/home/modal')
    },
    {
        path:'tree',
        name:'tree',
        meta:{
            title:'tree'
        },
        component:()=>import('@/view/home/tree')
    },
    {
        path:'admin',
        name:'admin',
        meta:{
            title:'admin',
            roles:['admin']
        },
        component:()=>import('@/view/home/admin')
    },
    {
        path:'teacher',
        name:'teacher',
        meta:{
            title:'teacher',
            roles:['teacher','viewer']
        },
        component:()=>import('@/view/home/teacher')
    },
    {
        path:'/home',
        redirect:'markdown'
    }
]

const routes = children.filter(item=>item.meta);

export {routes}
export default children